package com.example.design.simplefactory;

public class Factory {
	
	public static Product createFactory(String name) {
		Product product = null;
		if(name.equalsIgnoreCase("A")) {
			product = new ConcreteProductA();
		} else if(name.equalsIgnoreCase("B")){
			product = new ConcreteProductB();
		}
		
		return product;
	}
}
